package palindrome;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * This class realized methods for reading input information.
 *
 * @author Muzalevskiy Vitaliy
 */
public class Reader {

    /**
     * Method serves for reading some data from console.
     *
     * @return <code> String </code> value of read information.
     */
    public static String readFromConsole() {
        String value = new String();
        BufferedReader reader;
        try {
            reader = new BufferedReader(new InputStreamReader(System.in));
            value = reader.readLine();
        } catch (IOException e) {
            System.out.println(e.getMessage());
        }
        return value;
    }
}